﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="MaintainSupplierInfo.aspx.cs" Inherits="Maintain_supplier_information.MaintainSupplierInfo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="MyScripts/maintainSupplierInfo.js"></script>
    <style type="text/css">
        .auto-style1
        {
            width: 258px;
        }
    </style>
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div align="center">    
        <asp:Label ID="lbl_heading" runat="server" Font-Bold="True" Font-Size="Large" style="font-size: xx-large" Text="Supplier Maintainance Form"></asp:Label>
        <br />
        <br />
        <asp:Label ID="lbl_status" runat="server" ForeColor="Red"></asp:Label>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="List" ForeColor="Red" />
        <br /> 

        <table class="table-condensed">
            <tr>
                <td class="auto-style1">
                    <asp:Label ID="Label1" runat="server" Text="Supplier ID:"></asp:Label>
                </td>
                <td class="auto-style5">
                    <asp:TextBox ID="txt_supplierid" runat="server" style="margin-left: 2px" CssClass="form-control"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_supplierid" ErrorMessage="Supplier ID must be filled" ForeColor="Red" ToolTip="Supplier ID must be filled">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txt_supplierid" ErrorMessage="Supplier ID can have a maximum of 5 characters" ForeColor="Red" ValidationExpression="^\w{1,5}$">*</asp:RegularExpressionValidator>
                   </td>
            </tr>
            <tr>
                <td class="auto-style1">
                    <asp:Label ID="Label2" runat="server" style="text-align: center" Text="Supplier Name:"></asp:Label>
                </td>
                <td class="auto-style5">
                    <asp:TextBox ID="txt_suppliername" runat="server" CssClass="form-control"></asp:TextBox>
                     </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_suppliername" ErrorMessage="Supplier name must be filled" ForeColor="Red" ToolTip="Supplier name must be filled">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style1" >
                    <asp:Label ID="Label3" runat="server" Text="Contact Name:"></asp:Label>
                </td>
                <td class="auto-style5">
                    <asp:TextBox ID="txt_contactname" runat="server" CssClass="form-control"></asp:TextBox>
                     </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txt_contactname" ErrorMessage="Contact name must be present" ForeColor="Red" ToolTip="Contact name must be present">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style1">
                    <asp:Label ID="Label4" runat="server" Text="Phone No:"></asp:Label>
                </td>
                <td class="auto-style5">
                    <asp:TextBox ID="txt_phoneno" runat="server" CssClass="form-control"></asp:TextBox>
                     </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txt_phoneno" ErrorMessage="Contact number must be filled" ForeColor="Red" ToolTip="Contact number must be filled">*</asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txt_phoneno" ErrorMessage="Please enter only digits" ForeColor="Red" MaximumValue="2147483647" MinimumValue="1" Type="Integer">*</asp:RangeValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style1" >
                    <asp:Label ID="Label5" runat="server" Text="Fax No:"></asp:Label>
                </td>
                <td class="auto-style4">
                    <asp:TextBox ID="txt_faxno" runat="server" CssClass="form-control"></asp:TextBox>
                     </td>
                <td>
                    <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="txt_faxno" ErrorMessage="Please enter only digits" ForeColor="Red" MaximumValue="2147483647" MinimumValue="1" Type="Integer">*</asp:RangeValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style1" >
                    <asp:Label ID="Label6" runat="server" Text="GST Registration No:"></asp:Label>
                </td>
                <td class="auto-style5">
                    <asp:TextBox ID="txt_gstregno" runat="server" CssClass="form-control"></asp:TextBox>
                     </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txt_gstregno" ErrorMessage="GST reg number must be filled" ForeColor="Red" ToolTip="GST reg number must be filled">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style1" >
                    <asp:Label ID="Label7" runat="server" Text="Address:"></asp:Label>
                </td>
                <td class="auto-style5">
                    <asp:TextBox ID="txt_address" runat="server" TextMode="MultiLine" CssClass="form-control" Width="200px" MaxLength="200"></asp:TextBox>
                     </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txt_address" ErrorMessage="Address must be filled" ForeColor="Red" ToolTip="Address must be filled">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style1" >
                    <asp:Label ID="Label8" runat="server" Text="E-Mail:"></asp:Label>
                </td>
                <td class="auto-style5">
                    <asp:TextBox ID="txt_email" runat="server" CssClass="form-control"></asp:TextBox>
                     </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="Email must be filled" ControlToValidate="txt_email" Text="*" ToolTip="Email must be filled" ForeColor="Red"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txt_email" ErrorMessage="Please enter a valid email" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                     <br />
                     <asp:Button ID="btn_submit" runat="server" OnClick="btn_submit_Click" Text="Submit" CssClass="btn-primary" OnClientClick="disableCancel()" />

            <asp:Button ID="btn_cancel" runat="server" Text="Cancel" CausesValidation="False" OnClick="btn_cancel_Click" CssClass="btn-success" />
                </td>
            </tr>
        </table>
        <br />
           
</div>           
      
        <br />
</asp:Content>
